import React from "react";
import './Todo.css';
import TodoHeader from "../TodoHeader/TodoHeader";
import TodoMain from "../TodoMain/TodoMain";
import TodoFooter from "../TodoFooter/TodoFooter";
import { useEffect } from "react";
import store from "../../../redux/store";
import { requestAddTodo, requestGetTodo, requestRemoveTodo, requestUpdateTodo } from "../../../redux/reducers/todoReducer";
export default function Todo() {

  useEffect(() => {
    store.dispatch(requestGetTodo());
  }, [])

  return (
    <div className="todo-container">
      <div className="todo-wrap">
        <TodoHeader  />
        <TodoMain  />
        <TodoFooter  />
      </div>
    </div>
  );
}
